package com.icangya.domain;

import javax.persistence.*;

@Entity
@Table(name = "fb_ip_request")
public class FBIpRequest {

    private long id;

    private String openid;

    private String nickName;

    private String headImgUrl;

    private String ip;

    private String createTime;

    private String remark;

    private String all_ip;


    @Basic
    @Column(name = "all_ip")
    public String getAll_ip() {
        return all_ip;
    }

    public void setAll_ip(String all_ip) {
        this.all_ip = all_ip;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }


    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "openid")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @Basic
    @Column(name = "nick_name")
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    @Basic
    @Column(name = "head_img_url")
    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }
    @Basic
    @Column(name = "ip")
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    @Basic
    @Column(name = "create_time")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public FBIpRequest(String openid, String nickName, String headImgUrl, String ip, String createTime, String remark) {
        this.openid = openid;
        this.nickName = nickName;
        this.headImgUrl = headImgUrl;
        this.ip = ip;
        this.createTime = createTime;
        this.remark = remark;
    }

    public FBIpRequest() {
    }

    @Override
    public String toString() {
        return "FBIpRequest{" +
                "id=" + id +
                ", openid='" + openid + '\'' +
                ", nickName='" + nickName + '\'' +
                ", headImgUrl='" + headImgUrl + '\'' +
                ", ip='" + ip + '\'' +
                ", createTime='" + createTime + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
